//定义服务层
		app.service("brandService",function($http){
			this.findAll=function(){
				return $http.get('../brand/findAll.do');
			}
			
			this.findPage=function(page,size){
				return $http.get('../brand/findPage.do?page='+page+'&size='+size);
			}
			
			
			this.add=function(entity){
				return $http.post('../brand/add.do',entity);
			}
			
			this.update=function(entity){
				return $http.post('../brand/update.do',entity);
			}
			
			this.findOne=function(id){
				return $http.get('../brand/findOne.do?id='+id);
			}
			this.dele=function(selectIds){
				return $http.get('../brand/deleBrand.do?ids='+selectIds);
			}
			
			this.serch=function(page,size,serchEntity){
				return $http.post('../brand/serch.do?page='+page+'&size='+size,serchEntity);
			}
		})